package vista;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import controlador.ControladorAdministrador;
import bean.JTextFieldValidator;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaAdministrador extends javax.swing.JDialog {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel jPnlConfiguracion;
	private JLabel jLblDificultad;
	private JButton jBtnSalir;
	private JButton jBtnPalabraDificil;
	private JButton jBtnPalabraIntermedia;
	private JButton jBtnPalabraFacil;
	private JTextFieldValidator jTxtOracionDificil;
	private JTextFieldValidator jTxtOracionIntermedia;
	private JTextFieldValidator jTxtOracionFacil;
	private JLabel jLblPalabrasDificiles;
	private JLabel jLblPalabrasIntermedias;
	private JLabel jLblPalabrasFaciles;
	private JComboBox jCbBDificultad;

	/**
	* Auto-generated main method to display this JDialog
	*/
	
	public VistaAdministrador(JFrame frame) {
		super(frame);
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				this.setPreferredSize(new java.awt.Dimension(645, 370));
				this.setTitle("Configuracion de Palabra");
			}
			{
				jPnlConfiguracion = new JPanel();
				getContentPane().add(jPnlConfiguracion, "Center");
				jPnlConfiguracion.setBounds(14, 12, 607, 322);
				jPnlConfiguracion.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
				jPnlConfiguracion.setLayout(null);
				{
					jLblDificultad = new JLabel();
					jPnlConfiguracion.add(jLblDificultad);
					jLblDificultad.setText("Dificultad");
					jLblDificultad.setBounds(334, 23, 81, 15);
					jLblDificultad.setHorizontalAlignment(SwingConstants.CENTER);
				}
				{
					ComboBoxModel jCbBDificultadModel = 
						new DefaultComboBoxModel(
								new String[] { "Ing. Dificultad", "Facil", "Medio", "Dificil" });
					jCbBDificultad = new JComboBox();
					jPnlConfiguracion.add(jCbBDificultad);
					jCbBDificultad.setModel(jCbBDificultadModel);
					jCbBDificultad.setBounds(439, 19, 135, 22);
				}
				{
					jLblPalabrasFaciles = new JLabel();
					jPnlConfiguracion.add(jLblPalabrasFaciles);
					jLblPalabrasFaciles.setText("Nivel Facil (de 1 sola palabra)");
					jLblPalabrasFaciles.setBounds(26, 83, 264, 15);
				}
				{
					jLblPalabrasIntermedias = new JLabel();
					jPnlConfiguracion.add(jLblPalabrasIntermedias);
					jLblPalabrasIntermedias.setText("Nivel Medio (de 2 a 4 palabras)");
					jLblPalabrasIntermedias.setBounds(26, 141, 264, 15);
				}
				{
					jLblPalabrasDificiles = new JLabel();
					jPnlConfiguracion.add(jLblPalabrasDificiles);
					jLblPalabrasDificiles.setText("Nivel Dificil (de 5 a 10 palabras )");
					jLblPalabrasDificiles.setBounds(26, 200, 264, 15);
				}
				{
					jTxtOracionFacil = new JTextFieldValidator();
					jPnlConfiguracion.add(getJTxtOracionFacil());
					jTxtOracionFacil.setBounds(26, 108, 479, 22);
					jTxtOracionFacil.setEnabled(false);
					jTxtOracionFacil.setTipoCaracteresPermitidos(JTextFieldValidator.SOLO_LETRAS);
				}
				{
					jTxtOracionIntermedia = new JTextFieldValidator();
					jPnlConfiguracion.add(jTxtOracionIntermedia);
					jTxtOracionIntermedia.setBounds(26, 167, 479, 22);
					jTxtOracionIntermedia.setEnabled(false);
					jTxtOracionIntermedia.setTipoCaracteresPermitidos(JTextFieldValidator.LETRAS_Y_ESPACIOS);
				}
				{
					jTxtOracionDificil = new JTextFieldValidator();
					jPnlConfiguracion.add(getJTxtOracionDificil());
					jTxtOracionDificil.setBounds(26, 227, 479, 22);
					jTxtOracionDificil.setEnabled(false);
					jTxtOracionDificil.setTipoCaracteresPermitidos(JTextFieldValidator.LETRAS_Y_ESPACIOS);
				}
				{
					jBtnPalabraFacil = new JButton();
					jPnlConfiguracion.add(getJBtnPalabraFacil());
					jBtnPalabraFacil.setText("Incluir");
					jBtnPalabraFacil.setBounds(507, 103, 90, 27);
					jBtnPalabraFacil.setEnabled(false);
				}
				{
					jBtnPalabraIntermedia = new JButton();
					jPnlConfiguracion.add(getJBtnPalabraIntermedia());
					jBtnPalabraIntermedia.setText("Incluir");
					jBtnPalabraIntermedia.setBounds(507, 162, 90, 27);
					jBtnPalabraIntermedia.setEnabled(false);
				}
				{
					jBtnPalabraDificil = new JButton();
					jPnlConfiguracion.add(getJBtnPalabraDificil());
					jBtnPalabraDificil.setText("Incluir");
					jBtnPalabraDificil.setBounds(507, 224, 90, 27);
					jBtnPalabraDificil.setEnabled(false);
				}
				{
					jBtnSalir = new JButton();
					jPnlConfiguracion.add(getJBtnSalir());
					jBtnSalir.setText("Salir");
					jBtnSalir.setBounds(507, 277, 90, 27);
				}
			}
			this.setSize(645, 370);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public JComboBox getJCbBDificultad() {
		return jCbBDificultad;
	}
	
	public JTextField getJTxtOracionFacil() {
		return jTxtOracionFacil;
	}
	
	public JTextField getJTxtOracionDificil() {
		return jTxtOracionDificil;
	}
	
	public JTextField getJTxtOracionIntermedia() {
		return jTxtOracionIntermedia;
	}
	
	public JButton getJBtnPalabraFacil() {
		return jBtnPalabraFacil;
	}
	
	public JButton getJBtnPalabraIntermedia() {
		return jBtnPalabraIntermedia;
	}
	
	public JButton getJBtnPalabraDificil() {
		return jBtnPalabraDificil;
	}
	
	public JButton getJBtnSalir() {
		return jBtnSalir;
	}

}